<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>FTM网上商城后台管理系统-登录</title>
<link rel="stylesheet" type="text/css" href="css_cz/layui/css/layui.css"
	media="all" />
<link rel="stylesheet" type="text/css" href="css_cz/css/login.css" />
<style type="text/css">
#div1 {
	width: 100%;
	height: 30px;
	background-color: lightskyblue;
}
</style>
	<script type="text/javascript" src="css_cz/javascript/jquery.min.js"></script>
	<script type="text/javascript" src="css_cz/layui/layui.js"></script>
	<script type="text/javascript" src="css_cz/javascript/login.js"></script>
<script src="css_cz/js/jquery-2.0.3.js"></script>
<script src="css_cz/js/jquery.cookie.js"></script>


</head>
<body class="beg-login-bg">
	<div class="beg-login-box">
		<header>
			<h1>FTM网上商城后台管理系统</h1>
		</header>
		<div class="beg-login-main">
			<form action="BackstageLoginServlet" class="layui-form" method="post">
				<div class="layui-form-item">
					<label class="beg-login-icon"> <i class="layui-icon">&#xe612;</i>
					</label> <input type="text" lay-verify="required" name="adminuser"
						id="adminuser" autocomplete="off" placeholder="这里输入账号"
						class="layui-input" lay-verType="tips">
				</div>
				<div class="layui-form-item">
					<label class="beg-login-icon"> <i class="layui-icon">&#xe642;</i>
					</label> <input type="password" lay-verify="required" name="adminpwd"
						id="adminpwd" autocomplete="off" placeholder="这里输入密码"
						class="layui-input" lay-verType="tips">
				</div>

				<div>
					<input type="checkbox" value="rememberme" name="cksremember"
						id="cksremember" checked>记住密码 </br>
				</div>

				<div class="layui-form-item">
					<div class="beg-pull">
						<input type="hidden" name="op" value="login"></br> <input
							type="submit" value="登入" id="div1"></br>
					</div>
				</div>
			</form>
		</div>
		<footer>
			<p>power by dw ©</p>
		</footer>
	</div>

	<script>
		$(function() {
			//("#username").blur 文本框失去焦点事件
			$("#adminuser").blur(function() {
				//读取用户名和密码的cookie信息
				var adminuser = $.cookie('adminuser');
				var adminpwd = $.cookie('adminpwd');
				console.log(adminpwd);
				//如果用户输入的用户名 和 读取用户名一致
				if ($(this).val() == adminuser) {
					//就将密码显示在密码框中
					$("#adminpwd").val(adminpwd);
				}

			});

		})
	</script>
</body>
</html>